import request from '@/utils/request';

// export interface Ibumen {
//     parentId:string,
//     name:string,
//     code:string
//     sort:number
//     status:number
// }
export function BumendeleteList(id:number) {
  return request({
    url: '/admin/department/delete/'+id,
    method: 'delete',
  });
}
export function getBumenList() {
  return request({
    url: '/admin/department/list',
    method: 'get',
  });
}
export function Bumenaddrequest(name:string,
    code:string,
    sort:number,
    status:number) {
  return request({
    url: '/admin/department/create',
    method: 'post',
    data:{
      name,
      code,
      sort,
      status
    }
  });
}
export function Bumenputrequest(name:string,
    code:string,
    sort:number,
    status:number,
    id:string) {
  return request({
    url: '/admin/department/update/'+id,
    method: 'put',
    data:{
      name,
      code,
      sort,
      status
    }
  });
}
